<!DOCTYPE html>
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
  <meta charset="utf-8">
  <title>Policy Logs</title>
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">

  <style>
    h2,
    ul,
    .version-info-table-data {
      word-break: break-word;
    }

    .buttons-row {
      align-items: center;
      display: flex;
      height: 56px;
    }

    .label {
      font-weight: bold;
      padding-inline-end: 5px;
      vertical-align: top;
    }

    .label::after {
      content: ':';
    }

    ul {
      list-style-type: none;
    }

    li {
      margin-bottom: 5px;
    }
  </style>
</head>

<body>

  <section id="logs-disabled-container" hidden>
    <h2>This page is not available on your browser</h2>
  </section>

  <section id="logs-enabled-container">
    <h1>$i18n{logsTitle}</h1>

    <div class="buttons-row">
      <button id="logs-dump">$i18n{exportLogsJSON}</button>
      <button id="logs-refresh">$i18n{refreshLogs}</button>
    </div>

    <h2>$i18n{versionInfoLabel}</h2>

    <table id="version-info" aria-label="Version Information">
      <tr>
        <td class="label">$i18n{browserName}</td>
        <td id="chrome-version-value" class="version-info-table-data">-</td>
      </tr>

      <tr>
        <td class="label">$i18n{revision}</td>
        <td id="chrome-revision-value" class="version-info-table-data">-</td>
      </tr>

      <tr>
        <td class="label">$i18n{os}</td>
        <td id="os-version-value" class="version-info-table-data">-</td>
      </tr>
    </table>

    <h2>Logs</h2>

    <ul id="logs-container" aria-label="Logs List"></ul>

    <h2>$i18n{variations}</h2>

    <ul id="active-variations-container" aria-label="Active Variations List"></ul>
  </section>
  <script type="module" src="/logs/policy_logs.js"></script>
</body>
</html>